import { createApp } from 'vue'
import { globalRegisterApp } from './global'
import 'normalize.css'
import './assets/css/index.css'

import App from './App.vue'

//import hyRequest from './service'
import { setupState } from './store'

import router from './router'
import store from './store'

const app = createApp(App)

//registerApp(app)
app.use(globalRegisterApp)

setupState()

app.use(router)
app.use(store)

app.mount('#app')

//interface DataType {
//  data: any
//  returnCode: string
//  success: string
//}

//hyRequest
//  .get<DataType>({
//    url: '/home/multidata',
//    showLoading: false
//  })
//  .then((res) => {
//    console.log(res.data)
//  })
